package user

import (
	v1 "Project/api/v1"
	"github.com/gin-gonic/gin"
)

type UserSuperRouter struct{}

func (u * UserSuperRouter) InitUserSuperRouter(Router *gin.RouterGroup) {
	userSuperRouter := Router.Group("api/super")
	userSuperApi := v1.ApiGroupApp.UserApiGroup.SuperApi
	{
		userSuperRouter.POST("user", userSuperApi.CreateUser)     			   // 新建用户
		userSuperRouter.GET("super-info",userSuperApi.SuperInfo) 			   // 获取管理员信息
		userSuperRouter.PUT("super-action", userSuperApi.EditorSuperUserInfo)  // 修改管理员信息
		userSuperRouter.PUT("password", userSuperApi.EditorPassword)          // 修改管理员密码
		userSuperRouter.GET("area-info",userSuperApi.AllAreaUserList) 		//  区县用户列表
		userSuperRouter.PUT("area-action", userSuperApi.EditorAreaUserInfo) //  修改区县用户信息
		userSuperRouter.DELETE("area-del",userSuperApi.DelAreaUserInfo)     // 删除区县用户信息
 	}
}
